﻿//        Another Demo from Andy L. & MissedMemo.com
// Borrow whatever code seems useful - just don't try to hold
// me responsible for any ill effects. My demos sometimes use
// licensed images which CANNOT legally be copied and reused.

using System;
using System.Windows.Data;


namespace MissedMemo.MeatAndCheeseDisc.OrderMonitor
{
    public class CancelStateToOpacityConverter : IValueConverter
    {
       public object Convert( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture )
        {
            bool isCanelled = System.Convert.ToBoolean( value );

            return isCanelled ? 0.5 : 1.0;
        }


        public object ConvertBack( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture )
        {
            throw new NotImplementedException();
        }
    }
}
